import { pubStyles, pubDatasetComponentType } from '../constant';
import { cloneDeep } from 'lodash';
export const WidgetTable = {
  type: 'widget-table',
  label: '表格',
  icon: 'icon-icon-field1',
  options: {
    setups: [
      {
        type: 'el-input',
        label: '组件名称',
        name: 'componentName',
        required: false,
        placeholder: '',
        value: '表格'
      },
      cloneDeep(pubDatasetComponentType),
      {
        type: 'el-select',
        label: '表头字段',
        name: 'barChartValue',
        required: true,
        multiple: true, //是否可多选
        placeholder: '',
        value: null
      }
    ],
    styles: [
      ...cloneDeep(pubStyles),
      {
        type: 'el-color-picker',
        label: '字体颜色',
        name: 'textColor',
        placeholder: '',
        value: ''
      },
      {
        type: 'el-input-number',
        label: '字体大小',
        name: 'textFontsize',
        required: false,
        placeholder: '',
        value: 18 //默认高200
      }
    ]
  }
};
